/*
 * @Descripttion: 检查任务页面
 * @version: 
 * @Author: linPing
 * @Date: 2019-10-29 12:25:00
 * @LastEditTime: 2019-11-01 16:31:22
 */



import React, { Fragment } from 'react';

import { observer, inject } from 'mobx-react';
import Toast, { DURATION } from 'react-native-easy-toast';
import NavigationBar from '../../common/NavigationBar';
import GlobalStyles from "../../res/styles/GlobalStyles";
import { ButtonGroup } from 'react-native-elements'
import NavigationUtil from '../../navigator/NavigationUtil'
import OffLineImagePick from "../../common/OffLineImagePick";
import Icon from "../../common/Images";
import AsyncStorageUtils from "../../expand/AsyncStorage";
import ViewUtil from "../../util/ViewUtil";
import SafeAreaViewPlus from "../../common/SafeAreaViewPlus";
import VisibleView from "../../common/VisibleView";

import ActionSheet from 'react-native-actionsheet';

import {
    SafeAreaView,
    StyleSheet,
    ScrollView,
    TouchableOpacity,
    Button,
    View,
    Text,
    StatusBar,
    FlatList,
    Image,
    TextInput,
    NativeModules,
    Alert,
    Dimensions
} from 'react-native';


const { width, height } = Dimensions.get('window')
// import { TouchableOpacity } from 'react-native-gesture-handler';

@inject('appStore')
@observer
export default class ShowDataPage extends React.Component {
    constructor(props) {
        super(props)

        // this.params = this.props.navigation.state.params
        // this.data = this.params.data
        // this.title = "添加隐患"
        // this.state = {
        //     inputText: "",
        //     defaultValue: "",
        //     imgShowList: [],
        //     showAction: false
        //     // dataList: this.originalData.room
        // }
        this.title = this.props.navigation.state.params.data && this.props.navigation.state.params.data.title || "store数据"
        this.data = JSON.stringify(this.props.navigation.state.params.data)
    }


    onBack = () => {
        NavigationUtil.goBack(this.props.navigation);
    }
   
    render() {
        const { navigation } = this.props
        const { appStore, appStore: { theme } } = this.props


        let statusBar = {
            backgroundColor: theme,
            barStyle: 'light-content',
        };
        let navigationBar =
            <NavigationBar
                title={this.title}
                statusBar={statusBar}
                leftButton={ViewUtil.getLeftBackButton(() => this.onBack())}
              
                style={{ backgroundColor: theme }}
            />;

      



        return (

            <SafeAreaViewPlus style={GlobalStyles.root_container}>

                {navigationBar}
                <View>
                    <Text>
                        {this.data}
                    </Text>
                  
                </View>
                

            </SafeAreaViewPlus>

        )
    }

};


const styles = StyleSheet.create({
   

});

